<template>
  <div>
    <!-- 使用exclude让一些一级路由不用缓存 -->
    <!-- 这里是一级路由 -->
    <keep-alive exclude="Search,SearchResult,Detail,UserEdit">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
// import { getAllChannelsAPI } from './api/index'
export default {
  async created () {
    try {
      // const res = await getAllChannelsAPI()
      // console.log(res)
    } catch (error) {
      // err拿到的是错误的对象
      console.dir(error)
    }
  }
}
</script>

<style lang="less" scoped>

</style>
